package com.xxl.job.core.biz.model;

import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;

/**
 * Created by xuxueli on 17/3/23.
 */
public class LogResult implements Serializable {
    @Serial
    private static final long serialVersionUID = 42L;

    public LogResult(int fromLineNum, int toLineNum, String logContent, boolean isEnd) {
        this.fromLineNum = fromLineNum;
        this.toLineNum = toLineNum;
        this.logContent = logContent;
        this.isEnd = isEnd;
    }

    @Setter
    @Getter
    private int fromLineNum;

    @Setter
    @Getter
    private int toLineNum;

    @Setter
    @Getter
    private String logContent;

    private boolean isEnd;

    public boolean isEnd() {
        return isEnd;
    }

    public void setEnd(boolean end) {
        isEnd = end;
    }
}
